package java_012_zuoye05;

import java.util.ArrayList;

public class java06 {
	public static void main(String[] args) {
		ArrayList<Integer> list = new ArrayList<Integer>();
		int[] arr1={1,2,3};
		int[] arr2={3,4,5,2};
		for (int i: arr1){
			list.add(i);
		}
		for (int i: arr2){
			list.add(i);
		}
		for(int i=0;i<list.size();i++){
			for(int j=0;j<list.size();j++){
				if(i!=j&&list.get(i)==list.get(j)){
					list.remove(list.get(j));
				}
			}
		}
		System.out.println(list);
	}
}
